<?php
function setResourceType($type=null){
    if(isset($_REQUEST['res_type'])){
        header(CONFIG['res_types'][$_REQUEST['res_type']]);
        return;
    }
    if($type!=null){
        header(CONFIG['res_types'][$type]);
        return;
    }


}
